<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
{js href="/static/admin/lib/html5shiv.js,/static/admin/lib/respond.min.js"}
<![endif]-->
{css href="/static/admin/static/h-ui/css/H-ui.min.css,/static/admin/static/h-ui.admin/css/H-ui.admin.css,/static/admin/lib/Hui-iconfont/1.0.8/iconfont.css,/static/admin/static/h-ui.admin/skin/default/skin.css,/static/admin/static/h-ui.admin/css/style.css,/static/admin/lib/webuploader/0.1.5/webuploader.css"}
<!--[if IE 6]>
{js href="/static/admin/lib/DD_belatedPNG_0.0.8a-min.js"}
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>查看订单 - 订单管理</title>
</head>
<body>
{notempty name="data"}
	<div class="cl pd-20" style=" background-color:#5bacb6">
		<img class="avatar size-XL l" src="{$data->user->head_url}">
		<dl style="margin-left:80px; color:#fff">
			<dt>
				<span class="f-18">{$data->user->nickname}</span>
				<span class="pl-10 f-12">账号：{$data->userNumber->number}</span>
			</dt>
			<dd class="pt-10 f-12" style="margin-left:0">这家伙很懒，什么也没有留下</dd>
		</dl>
	</div>
	<div class="pd-20">
		<table class="table">
			<tbody>
			<tr>
				<th class="text-r" width="120">订单号码：</th>
				<td>{$data.order_number}</td>
			</tr>
			{php}$pack_fee=0;{/php}
			{foreach $data->orderFoods as $orderFoods}
				{php}$pack_fee+=$orderFoods->pack_fee;{/php}
				<tr>
					<th class="text-r">商品id：</th>
					<td>{$orderFoods.fid}</td>
				</tr>
				<tr>
					<th class="text-r" style="color:red;font-weight: bold">商品名称：</th>
					<td style="color:red;font-weight: bold">{$orderFoods.food_title}</td>
				</tr>
				<tr>
					<th class="text-r" style="color:red;font-weight: bold">数量：</th>
					<td style="color:red;font-weight: bold">{$orderFoods.number}</td>
				</tr>
				<tr>
					<th class="text-r">商品库存：</th>
					<td>{$orderFoods->foods->stock} <span style="color:red;font-weight: bold"> {if $orderFoods->foods->stock<=10}库存少于10个,请增加库存{/if}</span></td>
				</tr>
				<tr>
					<th class="text-r">单价：</th>
					<td>{$orderFoods.unit_price}</td>
				</tr>
			{/foreach}
			<tr>
				<th class="text-r">配送费(元)：</th>
				<td>{$data.distribution_fee}</td>
			</tr>
			<tr>
				<th class="text-r">包装费(元)：</th>
				<td>{$pack_fee}</td>
			</tr>
			<tr>
				<th class="text-r" style="color:red;font-weight: bold">支付金额(元)：</th>
				<td style="color:red;font-weight: bold">{$data.price}</td>
			</tr>
			<tr>
				<th class="text-r">处理状态：</th>
				<td>{$data.handle_text}</td>
			</tr>
			<tr>
				<th class="text-r" style="color:red;font-weight: bold">客户备注：</th>
				<td style="color:red;font-weight: bold">{$data.remarks}</td>
			</tr>
			<tr>
				<th class="text-r">下单时间：</th>
				<td>{$data.create_at}</td>
			</tr>
			<tr>
				<th class="text-r">收货人：</th>
				<td>{$data->username}</td>
			</tr>
			<tr>
				<th class="text-r">收货手机号码：</th>
				<td>{$data->mobile}</td>
			</tr>
			<tr>
				<th class="text-r">收货地址：</th>
				<td>{$data->area}</td>
			</tr>
			<tr>
				<th class="text-r">收货详细地址：</th>
				<td>{$data->address}</td>
			</tr>
			<tr>
				<th class="text-r">商家备注：</th>
				<td>{$data->business_remarks}</td>
			</tr>
			</tbody>
		</table>
	</div>
{/notempty}

<!--_footer 作为公共模版分离出去-->
{js href="/static/admin/lib/jquery/1.9.1/jquery.min.js,/static/admin/lib/layer/2.4/layer.js,/static/admin/static/h-ui/js/H-ui.min.js,/static/admin/static/h-ui.admin/js/H-ui.admin.js"}
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
{js href="/static/admin/lib/jquery.validation/1.14.0/jquery.validate.js,/static/admin/lib/jquery.validation/1.14.0/validate-methods.js,/static/admin/lib/jquery.validation/1.14.0/messages_zh.js,/static/admin/static/gloab.js,/static/admin/static/gloab.css,/static/admin/lib/webuploader/0.1.5/webuploader.min.js,/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"}
<script type="text/javascript">
$(function(){
	{if !$data}
    	layer.msg('资源不存在',{icon:5,time:2000});
	{/if}
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>